// @note 目前修改配置后需要重新run start
// @document https://testfund.10jqka.com.cn/public/whw/kingfisher-temp/dist/#/usage/app-config
export default defineAppConfig({
  routes: [
    {
      path: '/',
      name: 'Home',
      source: './views/home/Index.vue',
    },
    {
      path: '/limitDetails',
      name: 'LimitDetails',
      source: './views/LimitDetails.vue',
    },
    {
      path: '/search',
      name: 'Search',
      source: './views/Search.vue',
    },
  ],

  spaConfig: {
    documentPath: '../public/index.html',
    window: {
      title: '涨停助手',
    },
    routerOptions: {
      // 路由切换滚动处理
      scrollBehavior: (
        _to: unknown,
        _from: unknown,
        savedPosition: {
          x: number;
          y: number;
        }
      ) =>
        savedPosition || {
          x: 0,
          y: 0,
        },
    },

    beforeRender: './beforeRender.js',
    // routerOptions: {
    //   mode: 'history',
    // },
    // mountScript:``,
  },
});
